|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectagents.anac.y2010.AgentSmith.ABidStrategy
agents.anac.y2010.AgentSmith.SmithBidStrategy
public class SmithBidStrategy
The strategy that is used in our agent. It samples the bid space, takes the bids that are near Pareto and returns them as next actions. NOTE There are two bugs in this strategy: 1. The agent incorrectly assumes that there are only 2 minutes 2. The agent checks if it gave "enough" utility to the opponent instead of itself
| Field Summary |
|---|
| Fields inherited from class agents.anac.y2010.AgentSmith.ABidStrategy |
|---|
fAgentID, fBidHistory, fPreferenceProfile, fUtilitySpace |
| Constructor Summary | |
|---|---|
SmithBidStrategy(BidHistory pHist,
UtilitySpace utilitySpace,
PreferenceProfileManager pPreferenceProfile,
AgentID pId)
Constructor |
|
| Method Summary | |
|---|---|
Bid |
getBestOpponentOffer()
Return the best offer made by your opponent. |
Bid |
getMostOptimalBid()
Calculate the most optimal bid |
Action |
getNextAction(double time)
Generate in new action |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmithBidStrategy(BidHistory pHist,
UtilitySpace utilitySpace,
PreferenceProfileManager pPreferenceProfile,
AgentID pId)
pHist - The bidhistoryutilitySpace - UtilityspacepPreferenceProfile - Preference profilepId - Our id| Method Detail |
|---|
public Action getNextAction(double time)
getNextAction in class ABidStrategypublic Bid getMostOptimalBid()
java.lang.Exceptionpublic Bid getBestOpponentOffer()
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||